package com.itheima.thread.Demo3;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        for (int i = 0; i < 10; i++) {
            Thread.sleep(1000);
            System.out.println("高建对喜欢的女孩说爱你"+i+"遍");
        }
        return "女孩笑着说我们还是做好朋友吧";
    }
}
